<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/salesOrder.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.sales.forms.SalesOrderForm,
                 com.scalar.chiptrack.commons.Constants"%>
<%@ page import="com.scalar.chiptrack.tags.attachFileTag" %>
<%@ page import="com.scalar.chiptrack.tags.InternalCommentsTag" %>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">

    function submitPage(action)
    {
        if(action == 'CONFIRM')
            document.salesOrderForm.action.value = "ConfirmSalesOrder";
        else if(action == 'EDIT')
            document.salesOrderForm.action.value = "EditSalesOrder";

        document.salesOrderForm.submit();
    }

// SharatH on July 31, 2003
function showErrorReportPage()
{
    newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
    newWindow.focus();
}

function showPrintView()
{
    var isSample = document.salesOrderForm.isSample.value;
    window.open('salesOrder.do?action=printView&isSample='+isSample,'optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
}

</SCRIPT>


<!-- Top Header Start-->
    <%
        String userTypeChiptrac = Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>

<!-- Top Header End-->
  
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<% String heading = ""; String isSample = "";%>
<% if((request.getParameter("isSample") != null) && (request.getParameter("isSample").equals("0"))) { 
         heading = "Sample Order"; isSample = "0";
%>
	    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sample_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sample_order_menu.jsp" %>
        </logic:notEqual>
<% } else { 
     heading = "Sales Order"; isSample = "1";
%>
        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sales_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sales_order_menu.jsp" %>
        </logic:notEqual>       
<% } %>


</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<html:form name="salesOrderForm" action="/salesOrder" method="post" type="com.scalar.chiptrack.sales.forms.SalesOrderForm">

<center><span class="NArialW"><%=heading%> Entry</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<br><br>
   <table border="0" width="90%" align=right>

   <tr>
   <td colspan=3 class="NArialL">Click here to <a href='javascript:showPrintView();'onmouseover="window.status='Click here to print/view sales order';return true" onmouseout="window.status='';return true"> view/print </a> <%= "0".equals ( isSample ) ? "Sample" : "Sales" %> Order Details</td>
   <td colspan=2 align=right>
    <a href="javascript:submitPage('EDIT');"><img src="<%=chipTracContext%>/jsp/includes/images/edit.gif" border=0 onmouseover="window.status='Click here to Edit sales order';return true" onmouseout="window.status='';return true" title="Click here to Edit Sales Order"></a>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:submitPage('CONFIRM');"><img src="<%=chipTracContext%>/jsp/includes/images/confirm.gif" border='0'onmouseover="window.status='Click here to Confirm Sales Order';return true" onmouseout="window.status='';return true" title="CLick here to Confirm Sales Order"></a>
   </td>
   <td>&nbsp;</td>
   </tr>
   <tr><td colspan=6>&nbsp;</td></tr>
    <tr><td colspan=6 class="NArialL"><chiptrack:info styleClass="NArialL"  /></td></tr>
    <tr>
	   <td width="21%"><font class="NArialL">Sales Order No :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="salesOrderForm" property="salesOrderNo"/></b></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL">Customer Name :</font></td>
       <td width="21%" class="bodytext"><b><bean:write name="salesOrderForm" property="customerName" /></b></td>
       <td width="3%">&nbsp;</td>
    </tr>

     <tr>
       <td width="21%"><font class="NArialL">Customer PO No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="customerPO" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL">Contact Person :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="contactPerson" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <%--<tr><td colspan=4><font class="NArialL">Please <chiptrack:attachFile fileGroup="SalesOrder-PO" fileSubGroup="AUTO" formTitle="View Attached Sales PO" linkText="click here" allowAttach="false" allowDelete="false"/> to View Attached PO</font></td></tr>--%>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoRevisionNumber"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="poRev" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL"><bean:message key="label.sales.salesOrder.PoDate"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="poDate" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Quotation No :&nbsp;</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="quotationNo" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL">&nbsp;</font></td>
       <td width="21%" class="bodytext">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Phone No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="phoneNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL">Cell No :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="cellNumber" /></td>
	   <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Fax No:</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="faxNumber" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL">Email :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="email" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
	  <tr><!-- Added by Sarada on 8th March 2004  -->
       <td width="21%"><font class="NArialL">Sales Person :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesPerson" /></td>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL"><bean:message key="label.sales.salesRep.Name"/> :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesRep" /></td>
      <%-- <td width="21%"><font class="NArialL">Sales Person</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesPerson" /></td>  --%>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL"><bean:message key="label.sales.salesOrder.ShippingMethod" /> :</font></td>
       <td width="21%" class="bodytext">
       <logic:notEqual name="salesOrderForm" property="shippingMethod" value="-1">
            <bean:write name="salesOrderForm" property="shippingMethod" /></td>
       </logic:notEqual>
        <td width="3%">&nbsp;</td>
        <td width="27%"><font class="NArialL">Regional Rep : </font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="regionalRep" />
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <logic:equal value="-2" name="salesOrderForm" property="endCustomerId">
           <td width="21%" class="NArialL">Add New <bean:message key="label.sales.endUser"/> :</td>
           <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="newEndUserName"  /></td>
       </logic:equal>
       <logic:notEqual value="-2" name="salesOrderForm" property="endCustomerId">
           <td width="21%"><font class="NArialL"><bean:message key="label.sales.endUser"/> :</font></td>
           <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="endCustomer"  /></td>
       </logic:notEqual>
       <td width="3%">&nbsp;</td>
        <logic:equal value="-2" name="salesOrderForm" property="odmId">
            <td width="27%" class="NArialL">Add New <bean:message key="label.sales.shipToCustomer"/></td>
            <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="newEndCustomerName" /></td>
        </logic:equal>
        <logic:notEqual value="-2" name="salesOrderForm" property="odmId">
            <td width="27%"><font class="NArialL"><bean:message key="label.sales.shipToCustomer"/></font></td>
            <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="odm" /></td>
        </logic:notEqual>        
       <td width="3%">&nbsp;</td>
     </tr>
    <tr>
       <td width="21%"><font class="NArialL">Pay Terms :</font></td>
       <td width="21%" class="bodytext">
       <logic:notEqual name="salesOrderForm" property="shippingTerms" value="-1">
        <bean:write name="salesOrderForm" property="shippingTerms"  /></td>
       </logic:notEqual>
       <td width="3%">&nbsp;</td>
       <td width="27%"><font class="NArialL"><bean:message key="label.sales.salesOrder.DeliveryTerms" /> : </font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="deliveryTerms" />
        </td>
       <td width="3%">&nbsp;</td>
     </tr>     
     <tr>
         <logic:equal value="true" name="salesOrderForm" property="isConsignee">
            <td width="21%" class="NArialL">Invoice to Customer : </td>
            <td width="21%" class="bodytext">
                <logic:equal value="0" name="salesOrderForm" property="isConsignmentSales">No</logic:equal>
                <logic:notEqual value="0" name="salesOrderForm" property="isConsignmentSales">Yes</logic:notEqual>
            </td>
         </logic:equal>
         <logic:notEqual value="true" name="salesOrderForm" property="isConsignee">
             <td width="21%">&nbsp;</td>
            <td width="21%">&nbsp;</td>
         </logic:notEqual>
       <td width="3%">&nbsp;</td>

       <td width="27%"><font class="NArialL">Booking Date : </font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="salesOrderDate" />
        </td>
       <td width="3%">&nbsp;</td>

        </tr>
		<tr>
			<td width="21%" class="NArialL"><bean:message key="label.sales.userField1"/> :</td>
			<td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="userField1"/></td>
			<td width="3%">&nbsp;</td>
			<td width="27%" class="NArialL"><<bean:message key="label.sales.userField2"/> :</td>
			<td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="userField2"/></td>
			<td width='3%'>&nbsp;</td>
		</tr>
     <tr>
       <td width="21%" valign="top"><font class="NArialL">Billing Address :</font></td>

       <td width="21%" class="bodytext" valign="top">
        <!-- <bean:write name="salesOrderForm" property="billingAddress" /> -->
        <%SalesOrderForm salesOrderForm = (SalesOrderForm) session.getAttribute("salesOrderForm");%>
        <%=salesOrderForm.getBillingAddressAsHTML()%>
       </td>
       <td width="3%">&nbsp;</td>
       <td width="27%" valign="top"><font class="NArialL">Shipping Address :</font></td>
       <td width="21%" class="bodytext" valign="top">
         <!-- <bean:write name="salesOrderForm" property="shippingAddress"  /> -->
        <%=salesOrderForm.getShippingAddressAsHTML()%>
       </td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr><td colsapn=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
     <tr>
       <td width="21%"><font class="NArialL">Freight Instructions :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="freightInstructions"/></td>
       <td width="3%">&nbsp;</td>
       <td width="25%"><font class="NArialL">Shipping Instructions :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="shippingInstructions" /></td>
       <td width="3%">&nbsp;</td>
     </tr>
     <tr>
       <td width="21%"><font class="NArialL">Comments :</font></td>
       <td width="21%" class="bodytext"><bean:write name="salesOrderForm" property="comments"/></td>
       <td width="3%">&nbsp;</td>
       <td width="25%">&nbsp;</td>
       <td width="21%">&nbsp;</td>
       <td width="3%">&nbsp;</td>
     </tr>
     
     <tr><td colspan=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
   <% int noOfColumnsBeforeQty = 7; %>
     <tr><td colspan=6>
       <table border="0" width="95%" bordercolor="#FFFFFF">
	 <tr>
	   <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Line Item</font></td>

        <td width="8%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">PO Line Item</font></td>

	   <td width="20%" align="center" bgcolor="#993333"><font class="NArialL">                
		        <font color="#FFFFFF"><bean:message key="label.mfgPartNumber" /></font>
	   </td>
         <% if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_MARKETING_PART_NUMBER)) { %>
            <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.mktgPartNumber" /></font></td>
         <% noOfColumnsBeforeQty ++; } %>

            <td width="20%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF"><bean:message key="label.customerPartNumber"/></font></td>
           <td width="20%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Description</font></td>
           <td width="1%" align=center bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Taxable</font></td>
           <td width="15%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Req'd Dock Date</font></td>
	   <td width="5%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Quantity</font></td>
	   <td width="10%" align="center" bgcolor="#993333"><font class="NArialL">
                <font color="#FFFFFF">Price </font></td>
	   <td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Amount</font></td>

       <td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Expedite<br>Fee</font></td>
         <%
            if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_PRICE_FIELD1)) {
         %>
            <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.lineItem.customPriceField1" /></font></td>
         <%
             }
             if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_TEXT_FIELD1)) {
         %>
                <td width="15%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF"><bean:message key="label.sales.lineItem.customTextField1" /></font></td>
         <%
             }
         %>

      </tr>

<%-- Modified by Prabhanjan  on 07 Mar 2004 to display subtotals --%>
<logic:iterate id="myHashMap" name="lineItemsWithSubtotals">
    <logic:iterate id="lineItemList" name="myHashMap" >
          <logic:iterate id="LineItem" name="lineItemList" property="key" type="com.scalar.chiptrack.sales.LineItem">
            <%--  <logic:iterate id="LineItem" name="presentLineItems" type="com.scalar.chiptrack.sales.LineItem"> --%>

            <tr>
                <td width="8%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="lineItemNo" />
                </td>
                <td width="8%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="poLineItemNo" />
                </td>
                <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="manufacturingPartNo"/>
                </td>
                <% if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_MARKETING_PART_NUMBER)) { %>
                    <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center><bean:write name="LineItem" property="marketingPartNo"/></td>
                <% } %>
                <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <logic:equal value="-2" name="LineItem" property="customerPartNo">
                        <bean:write name="LineItem" property="newCustomerPartNo"/>
                    </logic:equal>
                    <logic:notEqual value="-2" name="LineItem" property="customerPartNo">
                        <bean:write name="LineItem" property="customerPartNo"/>
                    </logic:notEqual>
                </td>
                <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="lineItemDescription"/>
                </td>
                <td width="1%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="isTaxableAsString"/>
                </td>
                <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <bean:write name="LineItem" property="requestDate"/>
                </td>
                <td width="5%" bgcolor="#DEE1E2" class="bodytext" align=right>
                    <bean:write name="LineItem" property="qtyAsString"/>
                </td>
                <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right>
                    <bean:write name="LineItem" property="unitPriceAsString"/>
                </td>
                <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=right>
                    <bean:write name="LineItem" property="amountAsString"/>
                </td>
                <td width="15%" bgcolor="#DEE1E2" class="bodytext" align=center>
                    <logic:equal name="LineItem" property="isExpedite" value="true">
                    Yes
                    </logic:equal>
                    <logic:equal name="LineItem" property="isExpedite" value="false">
                    No
                    </logic:equal>
                </td>
                 <%
                     if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_PRICE_FIELD1)) {
                 %>
                    <td width="10%" bgcolor="#DEE1E2" class="bodytext" align=right>
                        <bean:write name="LineItem" property="customPriceField1AsString"/>
                    </td>
                 <%
                     }
                     if(ConfigManager.getBooleanProperty(ConfigManager.PROP_SHOW_SALES_LINEITEM_CUSTOM_TEXT_FIELD1)) {
                 %>
                    <td width="20%" bgcolor="#DEE1E2" class="bodytext" align=center>
                        <bean:write name="LineItem" property="customTextField1"/>
                    </td>
                 <%
                     }
                 %>
            </tr>
        </logic:iterate>
        <tr>
            <td colspan="<%=noOfColumnsBeforeQty%>" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                Sub Total
            </td>
            <bean:define id="subTotal" name="lineItemList" property="value" type="com.scalar.chiptrack.sales.SubTotal"/>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalQty" />
            </td>
            <td>&nbsp;</td>
            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                <bean:write name="subTotal" property="subTotalAmt" />
            </td>
        </tr>
     </logic:iterate>
</logic:iterate>

    <tr><td colspan=10>&nbsp;</td></tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" class="NArialL" align="right">Total</td>
        <td bgcolor="#DEE1E2" class="NArialL" align="right"><bean:write name="salesOrderForm" property="subTotalAsString" /></td>
     </tr>
    <%  int salesTaxStateColspan = noOfColumnsBeforeQty-3; %>
     <tr>
		<td colspan="<%=salesTaxStateColspan%>" width="35%" class="NArialL" align=right>Sales Tax State</td>
        <td width="15%" class="NArialL" align=right>
            <html:select name="salesOrderForm" property="salesTaxType" styleClass="txfield" disabled= "true">
                <html:option value="0">Non Taxable</html:option>
                <html:options collection="salesTaxes" property="value" labelProperty="label" />
            </html:select>
        </td>
	    <td colspan="<%=noOfColumnsBeforeQty-salesTaxStateColspan+1%>" width="35%" align=right class="NArialL">Sales Tax</td>
        <td width="15%" bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="salesTaxAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL">Freight</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="frieghtAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL"><bean:write name="salesOrderForm" property="miscName"/></td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="miscAsString" /></td>
     </tr>
    <tr>
        <td colspan="<%=noOfColumnsBeforeQty+2%>" align=right class="NArialL">Order Total</td>
        <td bgcolor='#DEE1E2' class="NArialL" align="right"><bean:write name="salesOrderForm" property="orderTotalAsString" /></td>
     </tr>
   </table>

   </table>

  <tr><td colspan=6><img src='<%=chipTracContext%>/jsp/includes/images/spacer.gif' height='20'></td></tr>
</table>
<input type="hidden" name="customerName" value="<bean:write name="salesOrderForm" property="customerName" />" />
<html:hidden property="customerId" />
<html:hidden property="odmId" />
<input type="hidden" name="action" value="">
<input type="hidden" name="hdnShippingMethodName" value="<bean:write name="salesOrderForm" property="shippingMethod" />" >
<input type="hidden" name="hdnshippingAccount" value="<bean:write name="salesOrderForm" property="shippingAccount" />" >
<input type="hidden" name="isSample" value="<%=request.getParameter("isSample")%>">
<input type="hidden" name="shipAccount1" value="<bean:write name="salesOrderForm" property="shippingMethod" />"/>
<input type="hidden" name="<%=InternalCommentsTag.PARAM_COMMENTS_GROUP_ID_AUTO%>" value="<%=request.getParameter(InternalCommentsTag.PARAM_COMMENTS_GROUP_ID_AUTO)%>"/>
</html:form>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
